How can I pass a dictionary name into a function and handle KeyError inside the function

welcome to shbcf.ru